package com.zengqingfa.imp.demo.rest;

import com.zengqingfa.imp.demo.dto.EmpQueryDTO;
import com.zengqingfa.imp.demo.service.EmpService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletResponse;

/**
 * @fileName: EmpController
 * @author: zengqf3
 * @date: 2021-3-3 13:36
 * @description:
 */

@RestController
@RequestMapping("/emp/easyExcel")
public class EmpEasyExcelController {

    @Resource
    private EmpService empService;

    @PostMapping(value = "/export")
    public void export(HttpServletResponse response, @RequestBody EmpQueryDTO dto) {
        empService.export(response,dto);
    }

}
